package com.zxy.ziems.server.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 协议通道表(TAgreementChannel)实体类
 *
 * @author makejava
 * @since 2023-11-28 15:51:47
 */
@Data
public class AgreementChannelDto {
    /**
     * 通道id
     */
    private String channelId;
    /**
     * 协议id
     */
    @NotEmpty(message = "协议id不能为空")
    private String agreementId;
    /**
     * 通道名称
     */
    @NotEmpty(message = "通道名称不能为空")
    private String channelName;
    /**
     * 描述
     */
    @NotEmpty(message = "描述不能为空")
    private String description;
    /**
     * 通道类型
     */
    @NotEmpty(message = "通道类型不能为空")
    private String channelType;

    @NotNull(message = "通道参数不能为空")
    private List<ChannelFieldDto> channelParamList;

    @NotNull(message = "点位参数不能为空")
    private List<ChannelFieldDto> pointParamList;

}

